﻿using ERP;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Modularity;

namespace ConsoleApp1
{
    [DependsOn(typeof(ERPHttpApiClientModule))]
    public class MyModule:AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddHttpClientProxy(typeof(ERPHttpApiClientModule));
            context.Services.AddTransient(sp => new HttpClient
            {
             //   BaseAddress = new Uri(environment.BaseAddress)
            });
        }
    }
}
